home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / misc / hackertest.lha / Quest.doc < prev    next >
Text File  |  1992-11-22  |  2KB  |  73 lines

  1.                             Quest version 0.2
  2.  
  3. Quest is a sort of trivia program which asks different questions and calculates
  4. a score depending on the answers. Each question can be answered with one choice
  5. (unless multiple choices are allowed), represented by a number.
  6. In addition to these numbers, som special commands can be used at any
  7. question prompt:
  8.  
  9. AGAIN - display the question again, with the alternatives.
  10.  
  11. LEFT  - Show how many questions there are left (at most) before we are finished.
  12.  
  13. QUIT  - Quit immediately.
  14.  
  15.  
  16.  
  17. Quest takes one argument on the command line, which is the name of a question
  18. file with all the questions. The format of the data in the question file is
  19. this:
  20.  
  21. Initial:
  22.  
  23. Here we can type text that will be displayed before asking the questions.
  24. Just type any text you want here.
  25.  
  26. // This is a comment line however, and will not show up in the initial text.
  27. // All comment lines begin with '//'
  28. This text will be shown however.
  29. ::::
  30.  
  31. // The :::: above is an 'end of section' marker, ending any of the possible
  32. // section in a question file, Initial being one of them.
  33.  
  34.  
  35.  
  36.  
  37. Scores:
  38. <lownum> - <highnum> : Some text
  39. <lownum> - <highnum> : Some more text
  40.  
  41. // <lownum> and <highnum> are oridinary numbers specifying a range for
  42. // the scores. The text last on the line gives a message for this score range.
  43. // Any number of lines with ranges can be used, memory permitting.
  44. ::::
  45.  
  46.  
  47.  
  48.  
  49. Questions:
  50. <qnum>:[*] <Question text>
  51. *   <points>  <Selection text> [=> <nextnum>]
  52. *   <points>  <Selection text> [=> <nextnum>]
  53. *   <points>  <Selection text> [=> <nextnum>]
  54.  
  55. // This is a question entry. <qnum> is a number associated with the question.
  56. // The * after the : on the first line is only used if the question allows
  57. // multiple choices. The question itself is in <Question text>.
  58. // Each possible choice is for a question is represented by a line beginning
  59. // with a *. After this star it is specifyed how many points this answer should
  60. // add to the score and right after that the text describing the selection.
  61. // After a question <qnum> is answered, the default is to go to question
  62. // <qnum< + 1. THere is possible however to go to other questions, also
  63. // depending on which the answer. This is specifyed by '=>' and a number
  64. // <nextnum> which is the next question number. If <nextnum> is -1 the program
  65. // asks no more questions and shows the score.
  66. // Any number of selections and any number of questions can be used, memory
  67. // permitting.
  68. ::::
  69.  
  70.  
  71.  
  72. End of Documentation
  73.